package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicPrivatecar;
import cn.stylefeng.guns.modular.basic.model.params.BasicPrivatecarParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicPrivatecarResult;
import cn.stylefeng.guns.modular.order.model.params.OrderTransportParam;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 自有车档案表 Mapper 接口
 * </p>
 *
 * @author hu
 * @since 2019-07-01
 */
public interface BasicPrivatecarMapper extends BaseMapper<BasicPrivatecar> {

    /**
     * 获取列表
     *
     * @author hu
     * @Date 2019-07-01
     */
    List<BasicPrivatecarResult> customList(@Param("paramCondition") BasicPrivatecarParam paramCondition);

    /**
     * 获取map列表
     *
     * @author hu
     * @Date 2019-07-01
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicPrivatecarParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author hu
     * @Date 2019-07-01
     */
    Page<BasicPrivatecarResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicPrivatecarParam paramCondition, @Param("condition") String condition, @Param("deptId") Long deptId
    		,@Param("channeltype")String channeltype, @Param("operateId")Long operateId);
    
    Page<BasicPrivatecarResult> appFindPageBySpec(@Param("page") Page page, @Param("paramCondition") BasicPrivatecarParam paramCondition, @Param("deptId") Long deptId
    		, @Param("operateId")Long operateId);

    Page<BasicPrivatecarResult> findPlatooncarPageBySpec(@Param("page") Page page, @Param("paramCondition") BasicPrivatecarParam paramCondition, @Param("condition") String condition
    		, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author hu
     * @Date 2019-07-01
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicPrivatecarParam paramCondition);

	List<BasicPrivatecarResult> findListBySpec(@Param("paramCondition")BasicPrivatecarParam param, @Param("deptId")Long deptId, @Param("operateId")Long operateId);

	BasicPrivatecarResult findBySpec(@Param("paramCondition")BasicPrivatecarParam param, @Param("deptId")Long deptId, @Param("operateId")Long operateId);

    List<BasicPrivatecarResult> findBySpecList(@Param("paramCondition")BasicPrivatecarParam param, @Param("operateId")Long operateId);

	List<BasicPrivatecarResult> findTwoByOrder(@Param("paramCondition")OrderTransportParam orderTransportParam,@Param("operateId")Long operateId);

	boolean saveBatchList(@Param("list")List<BasicPrivatecarParam> list);

	List<BasicPrivatecarResult> findListBySpec8(@Param("paramCondition")BasicPrivatecarParam param, @Param("deptId")Long deptId, @Param("operateId")Long operateId);

    BasicPrivatecarResult findByName(@Param("name") String name, @Param("operateId")Long operateId);


}
